package com.feiyuan.modules.sys.mapper;

import com.feiyuan.modules.sys.entity.UserRoleEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.feiyuan.modules.sys.vo.UserRoleVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 
 * 
 * @author Xupf
 * @email xupengfei131276@126.com
 * @date 2024-03-01 14:51:34
 */
@Mapper
public interface UserRoleDao extends BaseMapper<UserRoleEntity> {

    /**
     * 通过用户ID查询角色信息
     * @param userId
     * @return
     */
    List<UserRoleVO> selectRoleList(@Param("userId") String userId);
}
